<%--
  Created by IntelliJ IDEA.
  User: ZT171
  Date: 2024/9/27
  Time: 20:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css" >
    <style>
        .layui-table {
            width: 800px;
            margin: 0 auto;
        }

        p {
            text-align: center;
        }

        .layui-form-item {
            text-align: center;
        }
    </style>
</head>
<body>
    <p>
        <form action="dept?action=list" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <div class="layui-input-inline layui-input-wrap">
                        <input type="text" placeholder="请输入姓名" name="dname" value="${condition.dname}" class="layui-input">
                        <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">查询</button>
                    </div>



                </div>
            </div>
        </form>
    </p>
    <c:forEach items="${depts}" var="dept">
        <tr>
            <td>${dept.id}</td>
            <td>${dept.dname}</td>
            <!-- 其他列 -->
        </tr>
    </c:forEach>



</body>
</html>
